using ImageEffects;
using UnityEditor;
using UnityEngine;

[CustomEditor(typeof(LightElement))]
public class LightElementEditor : Editor
{
    private LightElement _target;
    
    public override void OnInspectorGUI()
    {
        base.OnInspectorGUI();
        _target = target as LightElement;

        if (GUILayout.Button("一键寻找"))
        {
            _target.FindLightRenderer();
        }
    }
}